【運(yùn)維實(shí)操指南】2分鐘定制雷池 WAF 認(rèn)證頁:從「標(biāo)準(zhǔn)表單」到「視覺升級」全攻略

在 通用設(shè)置 > 防護(hù)配置 模塊下,找到 [自定義 HTML] 模塊


就像寫一個(gè)普通的html頁面一樣,你可以同時(shí)寫入 style、script 等標(biāo)簽, 所以用 css 就能修改中心區(qū)域的樣式啦。

示例:

把文末的示例代碼復(fù)制到


效果圖:


<script>

? console.log('Im a console.log, which is written in a script tag');

</script>

<style type="text/css">

? body {

? ? background: #395180;

? ? margin: 0;

? }

? body #slg-box {

? ? background-color: grey;

? ? width: 400px;

? ? height: 100%;

? ? top: 0;

? ? left: 0;

? ? transform: translate(0, 0);

? ? padding: 100px 20px;

? }

? body #slg-usergroup-username,

? body #slg-usergroup-password {

? ? background-color: grey;

? ? color: #fff;

? }

? body #slg-box-title {

? ? color: #e15ccf;

? }

? body #slg-usergroup-btn {

? ? color: grey !important;

? }

? body #slg-with-more-title div:nth-child(2) {

? ? background-color: transparent;

? ? width: 100%;

? ? height: 30px;

? ? line-height: 30px;

? ? text-align: center;

? ? border: 1px solid;

? }

? body #slg-with-more-title div:nth-child(1) {

? ? display: none;

? }

? body #slg-tabs > div {

? ? fill: green;

? }

? body #slg-usergroup-container input {

? ? border-style: dashed;

? }

</style>

<div

? style="

? ? background-color: grey;

? ? width: 200px;

? ? height: 100px;

? ? text-align: right;

? ? top: 50%;

? ? position: relative;

? ? left: calc(50% + 200px);

? ? position: relative;

? ? transform: translate(-50%,-50%);

? ? border-radius: 10px;

? ? font-size: 30px;

? ? line-height: 100px;

? ? text-align: center;

? "

>

? hello world

</div>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容