div变为输入框

本文将为您介绍HTML、CSS和JavaScript的基础知识及其在前端开发中的应用,包括样式设置、交互实现和页面布局等核心技能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link type="text/css" rel="stylesheet" href="divedit.css">
</head>
<body>
    <div class="survey_title">

        <div class="inner">

            <h1 class="title_content cke_editable cke_editable_inline cke_contents_ltr cke_show_borders" contenteditable="true" tabindex="0" spellcheck="false" style="position: relative;" role="textbox" aria-label="false" aria-describedby="cke_34">标题dsdfd&gt;<br><br><br></h1>

        </div>

    </div>
</body>

</html>


-------------------------------------------------------------------

divedit.css

* {
  background-repeat: no-repeat;
}

div {
  display: block;
}

.survey_title {
    border-top: 2px solid transparent;
     border-bottom: 2px solid transparent;

     padding-top: 5px;
      padding-bottom: 5px;
      text-align: center;
      -ms-word-break: break-all;
      word-break: break-all;
}

.survey_title .inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 710px;
}

.title_content {
  padding: 10px 0;
  font-size: 24px;
  color: #333333;
  font-weight: normal;
  margin: 0;
  word-break: break-word;

  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.cke_editable {
  cursor: text;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值