转换大小写

.submit{height: 36px;line-height: 36px;background-color: #f0f3f9;color: #333;overflow: visible;cursor: pointer;box-shadow: 1px 1px #AFC4EA, 2px 2px #AFC4EA, 3px 3px #AFC4EA;font-size: 16px;display: inline-block;text-align: center;padding: 0px 10px;text-decoration: none;font-weight: bold;margin-right: 10px;margin-top: 20px;}

.submit:active{-ms-transform: translate(1px, 1px);transform: translate(1px, 1px);box-shadow: 1px 1px #AFC4EA, 2px 2px #AFC4EA;}

.submit:hover{background-color: #EAEDF5;}

大小写在线转换

function zm_shouzimudaxie() {

zm_tihuanneirong(document.getElementById("zm_neirong").value.replace(/\b\w+\b/g,

function(a) {

return a.substring(0, 1).toUpperCase() + a.substring(1)

}))

}

function zm_quanbudaxie() {

zm_tihuanneirong(document.getElementById("zm_neirong").value.toUpperCase())

}

function zm_quanbuxiaoxie() {

zm_tihuanneirong(document.getElementById("zm_neirong").value.toLowerCase())

}

function zm_tihuanneirong(a) {

document.getElementById("zm_neirong").value = a

};

一键复制

编辑

Web IDE

原始数据

按行查看

历史

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐